<template>
  <div class="tagstyle">
      <!-- 基本属性 -->
      <el-divider content-position="left">基本属性</el-divider>
    
    <!-- 标签编辑选项 -->
    <el-form label-width="90px" label-position="left" size="small">
      <el-form-item label="标签文本">
        <el-input v-model="datas.labelText" placeholder="请输入标签文本"></el-input>
      </el-form-item>
      
      <el-form-item label="标签类型">
        <el-select v-model="datas.type" placeholder="请选择标签类型" clearable>
          <el-option label="默认" value=""></el-option>
          <el-option label="成功" value="success"></el-option>
          <el-option label="警告" value="warning"></el-option>
          <el-option label="危险" value="danger"></el-option>
          <el-option label="信息" value="info"></el-option>
        </el-select>
      </el-form-item>
      
      <el-form-item label="标签尺寸">
        <el-select v-model="datas.size" placeholder="请选择标签尺寸">
          <el-option label="默认" value="default"></el-option>
          <el-option label="大型" value="large"></el-option>
          <el-option label="小型" value="small"></el-option>
        </el-select>
      </el-form-item>
      
      <el-form-item label="主题">
        <el-select v-model="datas.effect" placeholder="请选择标签主题">
          <el-option label="浅色" value="light"></el-option>
          <el-option label="深色" value="dark"></el-option>
          <el-option label="朴素" value="plain"></el-option>
        </el-select>
      </el-form-item>
      
      <el-form-item label="背景颜色">
        <el-color-picker v-model="datas.color"></el-color-picker>
      </el-form-item>
      
      <el-form-item label="文字颜色">
        <el-color-picker v-model="datas.textColor"></el-color-picker>
      </el-form-item>
      
      <el-form-item label="其他选项">
        <el-checkbox v-model="datas.round">圆角</el-checkbox>
        <el-checkbox v-model="datas.closable">可关闭</el-checkbox>
        <el-checkbox v-model="datas.hit">边框描边</el-checkbox>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  name: 'tagstyle',
  props: {
    datas: Object,
    'data-type': String,
  },
}
</script>

<style scoped lang="less">
.tagstyle {
  width: 100%;
  box-sizing: border-box;
  
  /* 标题 */
  h2 {
    padding: 24px 16px 24px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #f2f4f6;
    font-size: 18px;
    font-weight: 600;
    color: #323233;
  }
}
</style> 